package com.tidy.seed.admin.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tidy.seed.admin.system.entity.Menu;
import com.tidy.seed.admin.system.vo.FindApiByMenuTreeVO;
import com.tidy.seed.admin.system.vo.GetUserMenuVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author HZ-ZY
 * @since 2025-08-05
 */
public interface MenuMapper extends BaseMapper<Menu> {

    List<FindApiByMenuTreeVO> findApiByMenuTree();

    List<GetUserMenuVO> getUserMenu(@Param("userId") Integer userId);
}
